package widget;

import android.support.annotation.IdRes;
import android.view.View;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseViewHolder;

import utils.ImageLoaderUtils;


/**
 * Created by chm on 2018/4/14.
 */

public class RecyViewHolder extends BaseViewHolder {
    public RecyViewHolder(View view) {
        super(view);
    }

    public BaseViewHolder setImage(@IdRes int viewId, String url) {
        ImageView view = getView(viewId);
        ImageLoaderUtils.loadImage(view.getContext(), url, view);
        return this;
    }
}
